package com.webside.Advertisingstatistics.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webside.Advertisingstatistics.mapper.BaDvertisementMapper;
import com.webside.Advertisingstatistics.model.BaDvertisementEntity;
import com.webside.Advertisingstatistics.service.BaDvertisementService;
import com.webside.base.baseservice.impl.AbstractService;
import com.webside.resource.model.ResourceEntity;

@Service("BaDvertisementService")
public class BaDvertisementServiceImpl extends AbstractService<ResourceEntity, Long> implements BaDvertisementService {

	@Autowired
	private BaDvertisementMapper baDvertisementMapper;
	// 这句必须要加上。不然会报空指针异常，因为在实际调用的时候不是BaseMapper调用，而是具体的mapper，这里为userMapper

	@Autowired
	public void setBaseMapper() {
		super.setBaseMapper(baDvertisementMapper);
	}

	@Override
	public List<BaDvertisementEntity> selectBaDvertisementAll() {
		// TODO Auto-generated method stub
		return baDvertisementMapper.selectBaDvertisementAll();
	}

}
